//      result_page.cpp
//      

#include "result_page.h"


ResultPage::ResultPage(qreal totalExpenses,
											QVector<quint32> prodLine,
											QWidget* parent)
	: QWidget(parent)
{
	setupUi(this);
	label1->setText(QString::number(prodLine[0]));
	label2->setText(QString::number(prodLine[1]));
	label3->setText(QString::number(prodLine[2]));
	totalLabel->setText(QString::number(totalExpenses));
}

void ResultPage::setScene(GraphScene* scene)
{
	graphView->setScene(scene);
	graphView->setRenderHint(QPainter::Antialiasing);
}
